package com.gywj.race.controller.api;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;

@RestController
public class IndexController {
    @GetMapping("/")
    public ModelAndView index() {
        ModelAndView modelAndView = new ModelAndView();
        modelAndView.setViewName("index");
        return modelAndView;
    }
    @GetMapping("/part")
    public ModelAndView part() {
        ModelAndView modelAndView = new ModelAndView();
        modelAndView.setViewName("part");
        return modelAndView;
    }
}
